body {
    font-family: 'Arial', sans-serif;
    background: #f4f4f4;
    color: #333;
    line-height: 1.6em;
}

.container {
    width: 80%;
    margin: auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.logo {
    max-width: 150px;
}

.carousel {
    position: relative;
    width: 100%;
    /* 固定宽度 */
    height: 500px;
    /* 固定高度 */
    overflow: hidden;
}

.carousel img {
    width: 100%;
    /* 图片宽度占满容器 */
    height: 100%;
    /* 图片高度占满容器 */
    object-fit: cover;
    /* 保持原始宽高比并填充容器 */
    transition: transform 0.5s ease;
}

.controls {
    display: flex;
    /* 启用 Flex 布局 */
    justify-content: space-between;
    /* 主轴上的项目平均分配剩余空间 */
    align-items: center;
    /* 交叉轴上的项目垂直居中对齐 */
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
}

.controls img {
    width: 10px;
    height: 30px;
}

.bt1,
.bt2 {
    margin: 0 10px;
    /* 可选：增加一些边距 */
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.bt1:hover,
.bt2:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
}

.indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.indicator.active {
    background-color: rgb(15, 13, 13);
}

.slogan {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.slogan div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.slogan div:hover {
    transform: scale(1.05);
}

.slogan img {
    max-width: 60px;
    margin-bottom: 10px;
    margin: 0 auto;
}

.slogan p {
    margin: 0;
    font-size: 18px;
    color: #555;
    font-weight: bold;
}


.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th,
.table-container td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.table-container th {
    background-color: #f2f2f2;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal.modal-open {
    display: block;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
}

/* 详情弹窗的样式规则 */
.detail-modal {
    /* 隐藏弹窗，防止页面加载时显示 */
    display: none;
    /* 固定定位，确保弹窗在滚动时位置不变 */
    position: fixed;
    /* 设置弹窗的层级，确保弹窗在所有元素之上 */
    z-index: 2;
    /* 弹窗水平居中 */
    left: 0;
    top: 0;
    /* 弹窗宽度占页面宽度的100% */
    width: 100%;
    /* 弹窗高度占页面高度的100%，确保内容无论多少都能充满整个屏幕 */
    height: 100%;
    /* 允许弹窗内部内容滚动，以避免覆盖页面内容时滚动整页 */
    overflow: auto;
    /* 半透明的黑色背景，用于弱化弹窗后的页面内容，提高用户对弹窗的注意力 */
    background-color: rgba(0, 0, 0, 0.4);
}

.detail-modal.modal-open {
    display: block;
}

.detail-modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 600px;
    width: 90%;
    margin: 100px auto;
}

.modal-title {
    font-size: 24px;
    color: #333333;
    margin-bottom: 20px;
}

.info-list {
    margin-bottom: 20px;
}

.info-list p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 10px;
}

.info-list p strong {
    font-weight: bold;
    color: #333333;

}

.close-button {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-button:hover {
    background-color: #0056b3;
}

.message {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
}

/* 可选：错误消息的样式 */
.message.error {
    background-color: #f44336;
}

.add-button {
    float: left;
    background-color: #28a745;
    /* 绿色 */
    font-size: 16px;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;

}

.add-button:hover {
    background-color: #218838;
    /* 深绿色 */
}

/* 基本样式 */
.refresh-button {
    float: right;
    padding: 10px 20px;
    font-size: 16px;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
    margin-right: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* 鼠标悬停效果 */
.refresh-button:hover {
    background-color: #0056b3;
}

/* 按钮激活效果 */
.refresh-button:active {
    background-color: #004085;
    transform: translateY(1px);
}

/* 禁用状态 */
.refresh-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 按钮焦点效果 */
.refresh-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

/* 容器样式 */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* 输入框样式 */
.search-input {
    padding: 10px;
    font-size: 16px;
    color: #333333;
    background-color: #f9f9f9;
    border: 1px solid #cccccc;
    border-radius: 5px;
    width: 300px;
    transition: border-color 0.3s ease;
}

/* 输入框聚焦效果 */
.search-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

/* 按钮样式 */
.search-button {
    padding: 10px 20px;
    font-size: 16px;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* 按钮悬停效果 */
.search-button:hover {
    background-color: #0056b3;
}

/* 按钮激活效果 */
.search-button:active {
    background-color: #004085;
    transform: translateY(1px);
}

/* 按钮禁用状态 */
.search-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 基础样式 */

.site-footer {
    width: 100%;
    height: 200px;
    background-color: #f9f9f9;
}


.copyright,
.contact-info {
    font-size: 14px;
    line-height: 1.5;
}

.social-media {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    padding: 20px 0;

    border-top: 1px solid #ddd;
}

.social-media li {
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.social-media a {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    padding-right: 10px;
    transition: color 0.3s ease;
}

.social-media img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

/* 鼠标悬停效果 */
.social-media a:hover {
    color: #007bff;
}

.social-media a:hover img {
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .social-media {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table td {
    border: 1px solid #ccc;
    padding: 8px;
    max-width: 150px;
    /* 根据需要调整最大宽度 */
}

.ellipsis {
    white-space: nowrap;
    /* 防止换行 */
    overflow: hidden;
    /* 隐藏溢出的内容 */
    text-overflow: ellipsis;
    /* 显示省略号 */
}

/* 自定义对话框样式 */
.custom-dialog {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 信息行样式 */
.info-row {
    margin-bottom: 20px;
}

/* 信息列样式 */
.info-col {
    padding: 10px;
    border: 1px solid #e4e7ed;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
}

/* 信息项样式 */
.info-item {
    margin: 0;
    font-size: 14px;
    color: #303133;
    line-height: 1.5;
}

/* 关闭按钮样式 */
.close-button {
    background-color: #409eff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 14px;
}

.close-button:hover {
    background-color: #66b1ff;
}